package com.hyl.service;

import com.hyl.dao.UserDao;
import com.hyl.entity.SysUser;

import java.util.List;

/**
 * @Description TODO
 * @Author com.com.hyl
 * @Date 2022/9/13 9:52
 **/
public class UserServiceImpl implements  UserService {

	private UserDao userDao;


	@Override
	public List<SysUser> findAdd() {
		return userDao.findAdd();
	}

	@Override
	public List<SysUser> findByName(String name) {
		return userDao.findByName(name);
	}

	@Override
	public int add(SysUser user) {
		return userDao.add(user);
	}

	@Override
	public int update(SysUser user) {
		return userDao.update(user);
	}

	@Override
	public int delete(int id) {
		return userDao.delete(id);
	}


	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}
}
